<?php

$appPath = 'app';
$corePath = 'core';
$viewPath = 'view';

define('APP', realpath($appPath) . '/');
define('CORE', realpath($corePath) . '/');
define('VIEW', realpath($viewPath) . '/');
define('PEXT', '.php');

require_once CORE . 'config' . PEXT;
require_once CORE . 'record' . PEXT;
require_once CORE . 'mysql' . PEXT;
require_once CORE . 'core' . PEXT;
require_once CORE . 'base' . PEXT;
require_once CORE . 'code_decode' . PEXT;
require_once APP . 'application' . PEXT;

$application = new Core(new Application);
$application->main();

/* end of index.php */